package entities;

import java.io.Serializable;

import api.entitites.IMaster;
import api.entitites.IOrder;


public class Master implements IMaster,Serializable {
	private Boolean employment = new Boolean(false);
	private IOrder order;
	private Integer id;
	private IdManager idManager=IdManager.getInstance();
	private String name;

	
	public Master(){
			id=idManager.getMasterId();
	}
	public void setNameMaster(String name){
		this.name = name;
	}
	
	public void setId(Integer id){
		this.id=id;
	}
	
	public Integer getId(){
		return id;
	}
	
	public void markMaster() {
		employment = true;
	}

	public void markMasterFree() {
		employment = false;
	}

	public String getNameMaster() {
		return name;
	}

	public void setOrder(IOrder order) {
		this.order = order;
		markMaster();

	}

	public Boolean getEmploymentMaster() {
		return employment;
	}

	public IOrder getOrder() {
		return order;
	}
	
	

}
